package com.avengers.common.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * @author yu.wang
 * @since 2019-12-17 18:19
 **/
public class ApiPage<Item> implements Serializable {
    private static final long serialVersionUID = 1L;
    @SerializedName("page_no")
    private Integer pageNumber;
    @SerializedName("page_size")
    private Integer pageSize;
    @SerializedName("total_page")
    private Integer totalPage;
    @SerializedName("total_item")
    private Integer totalItem;

    private List<Item> list;

    public Integer getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(Integer pageNumber) {
        this.pageNumber = pageNumber;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    public Integer getTotalItem() {
        return totalItem;
    }

    public void setTotalItem(Integer totalItem) {
        this.totalItem = totalItem;
    }

    public List<Item> getList() {
        return list;
    }

    public void setList(List<Item> list) {
        this.list = list;
    }
}
